import com.sun.xml.internal.ws.message.source.PayloadSourceMessage;

interface Inter{
    public int num = 10;
    public final int  num2 = 20;
    public  abstract void show();

}
/*
//接口名 + InterImpl这种格式是接口的实现类格式
    class InterImpL implements Inter{
    public InterImpL(){
        super();
    }

}
*/
//
class InterImpL2 extends Object implements Inter{
    public InterImpL2(){
    super();
    }
    public void show(){

    }

}
public class InterfaceDemo2 {
    public static void main(String[] args) {
        Inter i = new InterImpL2();
        System.out.println(i.num);
        System.out.println(i.num2);

        System.out.println(Inter.num2);
        System.out.println(Inter.num);

    }
}
